package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资金明细列表对象 sys_novel_money
 *
 * @author chj
 * @date 2022-11-10
 */
public class SysNovelMoney extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String moneyUsername;

    /** 变动金额 */
    @Excel(name = "变动金额")
    private BigDecimal moneyNumber;

    /** 变动前余额 */
    @Excel(name = "变动前余额")
    private BigDecimal moneyStartNumber;

    /** 变动后余额 */
    @Excel(name = "变动后余额")
    private BigDecimal moneyEndNumber;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date moneyAddtime;

    /** 发生原因 */
    @Excel(name = "发生原因")
    private String moneyReason;

    /** 变动类型 1=添加金额 2=减少金额 3=添加货币 4=减少货币 */
    @Excel(name = "变动类型 1=添加金额 2=减少金额 3=添加货币 4=减少货币")
    private String moneyType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMoneyUsername(String moneyUsername)
    {
        this.moneyUsername = moneyUsername;
    }

    public String getMoneyUsername()
    {
        return moneyUsername;
    }
    public void setMoneyNumber(BigDecimal moneyNumber)
    {
        this.moneyNumber = moneyNumber;
    }

    public BigDecimal getMoneyNumber()
    {
        return moneyNumber;
    }
    public void setMoneyStartNumber(BigDecimal moneyStartNumber)
    {
        this.moneyStartNumber = moneyStartNumber;
    }

    public BigDecimal getMoneyStartNumber()
    {
        return moneyStartNumber;
    }
    public void setMoneyEndNumber(BigDecimal moneyEndNumber)
    {
        this.moneyEndNumber = moneyEndNumber;
    }

    public BigDecimal getMoneyEndNumber()
    {
        return moneyEndNumber;
    }
    public void setMoneyAddtime(Date moneyAddtime)
    {
        this.moneyAddtime = moneyAddtime;
    }

    public Date getMoneyAddtime()
    {
        return moneyAddtime;
    }
    public void setMoneyReason(String moneyReason)
    {
        this.moneyReason = moneyReason;
    }

    public String getMoneyReason()
    {
        return moneyReason;
    }
    public void setMoneyType(String moneyType)
    {
        this.moneyType = moneyType;
    }

    public String getMoneyType()
    {
        return moneyType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("moneyUsername", getMoneyUsername())
                .append("moneyNumber", getMoneyNumber())
                .append("moneyStartNumber", getMoneyStartNumber())
                .append("moneyEndNumber", getMoneyEndNumber())
                .append("moneyAddtime", getMoneyAddtime())
                .append("moneyReason", getMoneyReason())
                .append("moneyType", getMoneyType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
